package controller.listeners.knbase;



import model.KnBaseModel;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import business.knBase.KnBaseGeneric;

import view.KnBaseView;

public class ContentTableSelectionListener implements Listener {


	private KnBaseView _view;
	private KnBaseModel _model;
	
		
			
			public ContentTableSelectionListener(KnBaseView view,
					KnBaseModel model) {
				this._model = model;
				this._view = view;
			}

			@Override
			public void handleEvent(Event event) {
				 
				KnBaseGeneric reg = _view.getSelectedRow();
				_model.setSelected_reg(reg);
				
			}
		}